﻿{include file="common/header" /}
<!-- 中间区域 -->
<div class="banner fadeInUp wow animated" data-wow-duration="2s">
    <img src="{$catTreeList.topCate.logo}" alt="">
</div>
<div class="survey fadeInUp wow animated" data-wow-duration="2s">
    <div class="centerBox clearBoth">
        <div class="survey_l">
            <div class="survey_l_a">
                {$catTreeList.topCate.title}
            </div>
            <div class="survey_l_b">
                <ul>
                    {foreach name="catTreeList.catList" item="cat"}
                    <li {if $cat.id == $catId}class="no"{/if}>
                            <a {if $cat['listCount'] > 0}href="javascript:;"{else}href="{$cat.url}"{/if}>
                        <p>{$cat.title}</p>
                    {if $cat['listCount'] > 0}
                        <div class="xx">
                            <img src="__ROOT__/home/images/c3_03.png" alt="" class="xx_a">
                            <img src="__ROOT__/home/images/c3_032.png" alt="" class="xx_b">
                        </div>
                    {/if}
                    </a>
                    {if $cat['listCount'] > 0}
                        <dl class="survey_xl">
                            {foreach name="cat.childList" item="child"}
                                <dd {if $child.id == $catId}id="no" class="nv"{/if}>
                                    <a href="{$child.url}">
                                        {$child.title}
                                    </a>
                                </dd>
                            {/foreach}
                        </dl>
                    {/if}
                    </li>

                    {/foreach}
                </ul>
            </div>
        </div>
        <div class="survey_r">
            <div class="indexes">
                您现在的位置： <img src="__ROOT__/home/images/tubiao.png" alt=""><span><a href="/">首页</a> > <a>{$catTreeList.topCate.title} </a> > {$Cate.title}</span>
            </div>
            <div class="survey_nr">
                <div class="survey_nr_tt">
                    {$Cate.title}
                </div>
                <div class="survey_nr_dd">
                    <ul>
                        {foreach name="articleList" item="atc"}
                            <li>
                                <a href="{:url('Article/show')}?id={$atc.id}&cat_id={$atc.cat_id}&nav_id={$on}">
                                    <div class="date">
                                        <h3><?=date("d",strtotime($atc['create_at']))?></h3>
                                        <h4><?=date("Y/m",strtotime($atc['create_at']))?></h4>
                                    </div>
                                    <div class="cong">
                                        <h3>{$atc.title}</h3>
                                        <h4>{$atc.subtitle|raw|nl2br}</h4>
                                    </div>
                                </a>
                            </li>
                        {/foreach}
                    </ul>
                    {$page|raw}

                </div>
            </div>
        </div>
    </div>
</div>
<script>
    $(function () {
        //页面加载自动运行该代码
        $("#no").parent().parent().addClass("no");
        $("#no").parent().show();
    });
</script>
<!-- 中间区域结束 -->
{include file="common/footer" /}